<?php

$dbconn = pg_connect ("host=localhost port=5432 dbname=postgres user=postgres password=leliput93");
if (!$dbconn) {
  echo "An error occured.\n";
  exit;
}

$result = pg_query($dbconn, "SELECT nama from supermarket.pegawai WHERE no_urut_pegawai 
										 IN ((SELECT no_urut_pegawai from supermarket.pegawai) 
										 EXCEPT (SELECT no_urut_pegawai from akun))");
			while ( $row = pg_fetch_row($result))
				print("<option>".$row[0]."</option>");


?>